<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8" />
<title>Stitching a photo-mosaic - PanoTools.org Wiki</title>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
<meta name="generator" content="MediaWiki 1.23.6" />






<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<style>a:lang(ar),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
/* cache key: panotools_wiki:resourceloader:filter:minify-css:7:90730a7865ba4b50e0b837e1821ff0a3 */</style>



<!--[if lt IE 7]><style type="text/css">body{behavior:url("/skins/vector/csshover.min.htc")}</style><![endif]--></head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Stitching_a_photo-mosaic skin-vector action-view vector-animateLayout">
		
		
		<div id="content" class="mw-body" role="main">
			<a id="top"></a>
			
						<h1 id="firstHeading" class="firstHeading" lang="en"><span dir="auto">Stitching a photo-mosaic</span></h1>
						<div id="bodyContent">
								<div id="siteSub">From PanoTools.org Wiki</div>
								
												
				<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><p>This section is a stub.
</p><p><br />
</p>
<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="Stitching_a_photo-mosaic.html#Definition_of_photo-mosaic"><span class="tocnumber">1</span> <span class="toctext">Definition of photo-mosaic</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="Stitching_a_photo-mosaic.html#Understanding_the_mosaic_lens_model"><span class="tocnumber">2</span> <span class="toctext">Understanding the mosaic lens model</span></a>
<ul>
<li class="toclevel-2 tocsection-3"><a href="Stitching_a_photo-mosaic.html#Parameters"><span class="tocnumber">2.1</span> <span class="toctext">Parameters</span></a></li>
<li class="toclevel-2 tocsection-4"><a href="Stitching_a_photo-mosaic.html#Mosaic_lens_model"><span class="tocnumber">2.2</span> <span class="toctext">Mosaic lens model</span></a></li>
<li class="toclevel-2 tocsection-5"><a href="Stitching_a_photo-mosaic.html#Result"><span class="tocnumber">2.3</span> <span class="toctext">Result</span></a></li>
</ul>
</li>
</ul>
</div>

<h2><span class="mw-headline" id="Definition_of_photo-mosaic">Definition of photo-mosaic</span></h2>
<p>A photo-mosaic is an image that is stitched together by photographs all taken from different viewpoints.   This differs from the <a href="Panorama.html" title="Panorama">panorama</a> where all images are taken from one single viewpoint but with different angles.
</p><p>The typical case of a photo-mosaic is the linear panorama<a class="external" href="http://wiki.panotools.org/index.php?title=Linear_panorama&amp;action=edit&amp;redlink=1">[*]</a>, where one large subject like a wall, is photographed by taking photos of the wall, each covering a proportion of the wall, and moving the camera parallel to the wall with each shot.
</p><p>The classical way to stitch these kinds of mosaics was to lay the prints out on a light-table and glue them together.   Now with the mosaic-mode in the panotools lens model, it is possible to use the software to estimate the camera position including angles, lens distortion etc. and to re-project and stitch the images to a photo-mosaic.
</p><p><br />
</p>
<h2><span class="mw-headline" id="Understanding_the_mosaic_lens_model">Understanding the mosaic lens model</span></h2>
<h3><span class="mw-headline" id="Parameters">Parameters</span></h3>
<p>The panotools <a href="Lens_correction_model.html" title="Lens correction model">lens model</a> has been expanded with the addition of five new parameters that describe the camera position in <a rel="nofollow" class="external text" href="http://en.wikipedia.org/wiki/Cartesian_coordinate_system">cartesian coordinates</a>, TrX, TrY, and TrZ, and the yaw and pitch of the translation remapping plane, Tpy and Tpp.
</p><p>The <a href="Yaw.html" title="Yaw">yaw</a>, <a href="Pitch.html" title="Pitch">pitch</a> and <a href="Roll.html" title="Roll">roll</a> angles now apply to the camera around the camera's TrX, TrY and TrZ position in space. Together these six parameters describe where the camera viewpoint is (TrX,TrY,TrZ) and the direction the camera's optical axis point (y,p,r).
</p>
<h3><span class="mw-headline" id="Mosaic_lens_model">Mosaic lens model</span></h3>
<p>In order to generate a photo-mosaic from the individual images, the panotools lens model re-projects the images in the following way.
</p>
<ul>
<li> Each image is projected onto a plane with yaw Tpy and pitch Tpp (the translation remapping plane). This re-projection uses all the lens model's parameters; the position parameters described above, as well as FOV, distortion. etc.
</li>
<li> The plane is projected onto the panosphere.
</li>
<li> The panorama camera, which gives the viewpoint of the photo mosaic, sits in the center of the panosphere and looks straight ahead at the panosphere (and the perpendicular projection plane).  This camera gives the FOV of the whole photo-mosaic.
</li>
</ul>
<p><br />
To illustrate the model, consider the following picture, which looks straight down at a photo mosaic which consists of three images taken "to the right" of the center.
</p>
<ul>
<li> The unit-panosphere<a class="external" href="http://wiki.panotools.org/index.php?title=Panosphere&amp;action=edit&amp;redlink=1">[*]</a> is drawn in gray.
</li>
<li> "The panorama camera" is centered in Origin, X,Y,Z =0. The translation remapping plane has default position Tpy=0 and Tpp=0.
</li>
<li> Three photos are taken with camera positions 1, 2 and 3 by varying TrX,TrZ and Yaw
</li>
<li> The photos are reprojected to a plane (red) that touches the panosphere in (0,0,1) and then onto the panosphere using the "Panorama camera"
</li>
</ul>
<p><img alt="Illustration4.png" src="Illustration4.png" width="712" height="547" /><a class="external" href="http://wiki.panotools.org/File:Illustration4.png">[*]</a>
</p>
<h3><span class="mw-headline" id="Result">Result</span></h3>
<p>Because the projection plane is a plane and perpendicular to the panorama camera, there will be miss-fit when this assumption is not true for the real-world subject.  For example, photos of a flat wall mural could be rendered perfect, while a three dimensional subject would not be.
</p>



</div>								<div class="printfooter">
				Retrieved from "http://wiki.panotools.org/index.php?title=Stitching_a_photo-mosaic&amp;oldid=15598<a class="external" href="http://wiki.panotools.org/index.php?title=Stitching_a_photo-mosaic&amp;oldid=15598">[*]</a>"				</div>
												</div></div></body></html>